package com.jse.oo.design.pattern.behavioral.observer.event;

import java.awt.Frame;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

public class FrameTest extends Frame {
	private static final long serialVersionUID = -8030227011044826594L;

	public static void main(String[] args) {
		Frame frame = new FrameTest();
		frame.setBounds(200, 200, 200, 200);
		frame.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				System.out.println("mouseClicked is invoked");
			}
		});
		frame.setVisible(true);
	}
}
